package com.general.framework.zzyy.juc;

import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

public class SynchronizedDemo {

    public static void main(String[] args) {
        System.out.println("hello world");
        // synchronized关键字使用
        new Thread(new Runnable() {
            @Override
            public void run() {
                synchronized (SynchronizedDemo.class) {
                    System.out.println("hello world");
                }
            }
        });
    }
}
